package backed.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "基础接口", description = "系统基础接口，用于测试连接")
@RestController
public class HelloController {
    @Operation(summary = "测试接口", description = "用于测试后端服务是否正常运行的基础接口")
    @GetMapping("/hello")
    public String hello() {
        return "Hello from Spring Boot backend!";
    }
}
